// EventHandler.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "EventHandlerObserver.h"


int _tmain(int argc, _TCHAR* argv[])
{

	EventHandler HandlerObject;

	// Start command thread to simulate sensor event
	_beginthreadex(NULL, 0, &CommandThreadFunction, &HandlerObject, 0, NULL);

	InitEventHandler(&HandlerObject, &HandlerFunction);

	RegisterObserver(&HandlerObject, &HandlerFunction);

	while (1){

	}

	return 0;
}

